package com.lianxi.lianxi.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class SpringAOP {
    @Before("bean(deptServiceImpl)")
    public void before(){
        System.out.println("我是before通知");
    }
}
